package com.netease.nie.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.netease.nie.base.controllers.BaseController;
import com.netease.nie.dto.LimitedTimeExchangeDto;
import com.netease.nie.facade.LimitedTimeExchangeGoodsFacade;

/**
 * 限时兑换显示接口
 * @author wwbn3695
 * @createDate June 30th,2016
 *
 */
@RestController
@RequestMapping("/api")
public class LimitedTimeExchangeController extends BaseController {
	
	@Autowired
	private LimitedTimeExchangeGoodsFacade limitedTimeExchangeGoodsFacade;

	@RequestMapping(value = "/limited_time_exchange", method = RequestMethod.GET, produces = "application/json")
	public String limitedTimeExchange() throws Exception {		
		LimitedTimeExchangeDto limitedTimeExchangeDto = limitedTimeExchangeGoodsFacade.listLimitTimeExchangeDto();
		return jsonSuccess(limitedTimeExchangeDto);
	}
}
